const {Router} = require('express');
const router = Router();
const {addUser, login, getUserByToken} = require('../controller/user');
const {auth} = require('../controller/auth');

router.post('/', addUser);
router.post('/login', login);
router.get('/', auth, getUserByToken);

module.exports = router;
